package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the COST_PROJECT_ARTICLE database table.
 * 
 */
@Entity
@Table(name="COST_PROJECT_ARTICLE")
@NamedQueries({
    @NamedQuery(name = "CostProjectArticle.findAll", query = " SELECT c FROM CostProjectArticle c "),
    @NamedQuery(name = "CostProjectArticle.findById", query = " SELECT c FROM CostProjectArticle c WHERE c.id = :Id ")
})
public class CostProjectArticle extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private CostProjectArticlePK id;

	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}
	
	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="LEADTIME", precision=22)
	private BigDecimal leadtime;

	@Column(name="PR_FLAG", length=1)
	private String prFlag;

	@Column(name="SEQ_NO", precision=22)
	private BigDecimal seqNo;

	@Column(length=1)
	private String status;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;	

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;
    
    @Column(name="ARTICLE_GROUP", length=1)
	private String articleGroup;
	
	@Column(name="ARTICLE_SUB_GROUP", length=1)
	private String articleSubGroup;
	
	@Column(name="UM", length=1)
	private String um;

    public CostProjectArticle() {
    }
    
    

	/**
	 * @return the articleGroup
	 */
	public String getArticleGroup() {
		return articleGroup;
	}



	/**
	 * @param articleGroup the articleGroup to set
	 */
	public void setArticleGroup(String articleGroup) {
		this.articleGroup = articleGroup;
	}



	/**
	 * @return the articleSubGroup
	 */
	public String getArticleSubGroup() {
		return articleSubGroup;
	}



	/**
	 * @param articleSubGroup the articleSubGroup to set
	 */
	public void setArticleSubGroup(String articleSubGroup) {
		this.articleSubGroup = articleSubGroup;
	}



	/**
	 * @return the um
	 */
	public String getUm() {
		return um;
	}



	/**
	 * @param um the um to set
	 */
	public void setUm(String um) {
		this.um = um;
	}



	public CostProjectArticlePK getId() {
		return this.id;
	}

	public void setId(CostProjectArticlePK id) {
		this.id = id;
	}
	
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public BigDecimal getLeadtime() {
		return this.leadtime;
	}

	public void setLeadtime(BigDecimal leadtime) {
		this.leadtime = leadtime;
	}

	public String getPrFlag() {
		return this.prFlag;
	}

	public void setPrFlag(String prFlag) {
		this.prFlag = prFlag;
	}

	public BigDecimal getSeqNo() {
		return this.seqNo;
	}

	public void setSeqNo(BigDecimal seqNo) {
		this.seqNo = seqNo;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

}